package org.chen.common.model.order;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("abnormal_payment_record")
@Schema(name = "AbnormalPaymentRecord对象", description="异常支付记录表")
public class AbnormalPaymentRecord {
    @TableId(value = "id")
    private Long id;

    @TableField("paypal_order_id")
    private String payPalOrderId; // PayPal订单号

    @TableField("order_id")
    private String orderId; // 商户订单号

    @TableField("amount")
    private BigDecimal amount; // 支付金额

    @TableField("reason")
    private String reason; // 异常原因

    @TableField("status")
    private String status; // 状态：PENDING-待退款，SUCCESS-退款成功，FAILED-退款失败

    @TableField("refund_id")
    private String refundId; // PayPal退款ID

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;
}
